﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace _AdvanceWars
{
    class Terrain
    {
        public static string[] tTypes =
        {
            "rdown,rright",
            "rup,rright,rdown",
            "rup,rright",
            "rleft,rdown,rright",
            "rleft,rup,rdown,rright",
            "rleft,rup,rright",
            "rleft,rdown",
            "rleft,rup,rdown",
            "rleft,rup",
            "rup,rdown",
            "rleft,rright",
            "plains",
            "bleft,bright",
            "bup,bdown",
            "mountain,short",
            "forest",
            "shadow"
        };
        public const int PieceHeight = 16;
        public const int PieceWidth = 16;
        public const int MaxPlayablePieceIndex = 18;
        public const int EmptyPieceIndex = 13;
        private const int textureOffsetX = 1;
        private const int textureOffsetY = 1;
        private const int texturePaddingX = 1;
        private const int texturePaddingY = 1;
        private string pieceType = "";
        private string pieceSuffix = "";
        public string PieceType
        {
            get { return pieceType; }
        }
        public string Suffix
        {
            get { return pieceSuffix; }
        }
        public void GamePiece(string type, string suffix)
        {
            pieceType = type;
            pieceSuffix = suffix;
        }
        public void GamePiece(string type)
        {
            pieceType = type;
            pieceSuffix = "";
        }
            
    }
}
